import request from '@/utils/request'

// 查询系统约定列表
export function listConvention(query) {
  return request({
    url: '/system/convention/list',
    method: 'get',
    params: query
  })
}

// 查询系统约定详细
export function getConvention(id) {
  return request({
    url: '/system/convention/' + id,
    method: 'get'
  })
}

// 新增系统约定

export function addConvention(data) {
  return request({
    url: '/system/convention',
    method: 'post',
    data: data
  })
}

// 修改系统约定

export function updateConvention(data) {
  return request({
    url: '/system/convention',
    method: 'put',
    data: data
  })
}

// 删除系统约定

export function delConvention(id) {
  return request({
    url: '/system/convention/' + id,
    method: 'delete'
  })
}
